import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 内控-预算指标台账-分页列表查询
export function list(params){
  return axios({
        url: assessCheckApi.list,
        method:'get',
        params:{...params},
        url_2:'outside',
  })
}
// 内控-预算指标台账-添加
export function add(data){
    return axios({
        url: assessCheckApi.add,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-预算指标台账-编辑
export function edit(data){
    return axios({
        url: assessCheckApi.edit,
        method:'put',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-预算指标台账-通过id删除
export function deleteData(params){
    return axios({
        url: assessCheckApi.deleteData,
        method:'delete',
        params:{...params},
        url_2:'outside',
    })
}
// 内控-预算指标台账-批量删除
export function deleteBatch(params){
    return axios({
        url: assessCheckApi.deleteBatch,
        method:'delete',
        params:{...params},
        url_2:'outside',
    })
}
// 内控-预算指标台账-拆分
export function cfyszbtz(data){
    return axios({
        url: assessCheckApi.cfyszbtz,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}

// 下载-导入模板
export function getImpInspectorModel(params){
    return axios({
        url: assessCheckApi.getImpInspectorModel,
        method:'get',
        params:{...params},
        url_2:'outside',
        responseType: 'arraybuffer'
    })
}
// 导入数据
export function impExcelInspectorTBYC(data){
    return axios({
        url: assessCheckApi.impExcelInspectorTBYC,
        method:'post',
        data:data,
        url_2:'outside',
        // responseType: 'arraybuffer'
    })
}
// 导出预算指标台账数据-表格excel
export function exportYszbtzData(params){
    return axios({
        url: assessCheckApi.exportYszbtzData,
        method:'get',
        params:{...params},
        url_2:'outside',
        responseType: 'arraybuffer'
    })
}

// 查询药品监督管理局下部门
export function selectypjddepart(params){
    return axios({
        url: assessCheckApi.selectypjddepart,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}

// 内控-项目预算指标表-添加
export function projectAdd(data){
    return axios({
        url: assessCheckApi.projectAdd,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}

// 部门支出经济分类
export function getbmyszcjjflkm(params){
  return axios({
      url: assessCheckApi.getbmyszcjjflkm,
      method:'get',
      params:{...params},
      url_2:'outside',
  })
}

// 根据id查询已拆分数据的使用记录-导出
export function exportYszbczjlData(params){
  return axios({
    url: assessCheckApi.exportYszbczjlData,
    method:'get',
    params:{...params},
    url_2:'outside',
    responseType: 'arraybuffer'
  })
}

// 总台账进度
export function getAllTzJd(params){
    return axios({
        url: assessCheckApi.getAllTzJd,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}

// 总台账进度-当前页
export function getTreelists(params){
    return axios({
        url: assessCheckApi.getTreelists,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}

